package studentsinfomanagement.bean;

/**
 * 学生类
 *
 */
public class Student extends User{
    private String name;//姓名
    private String sno;// 学号
    private String department;// 专业号
    private String sex;//性别

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "student("+getName()+","+getSex()+","+getSno()+","+getDepartment()+","+getPassword()+")";
    }
}

